/*
 * This file is part of TradeHelper library.
 *
 * TradeHelper library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TradeHelper library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TradeHelper library.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.rag.assistants;

import com.alee.utils.XmlUtils;
import com.rag.core.NewsData;
import com.rag.core.NewsType;
import com.rag.core.SingleNews;

import java.io.File;

/**
 * User: mgarin Date: 19.04.12 Time: 16:51
 */

public class AnnounceGenerator
{
    public static void generateAnnounce ()
    {
        NewsData newsData = new NewsData ();

        SingleNews news2 = new SingleNews ();
        news2.setDate ( 1334842932920L );
        news2.setType ( NewsType.info );
        news2.setTitle ( "Ожидаемые нововведения и изменения в ближайшей версии" );
        news2.setText ( "- Полное соответствие скриптов итемов МОТР базе<br>" +
                "- Калькулятор статов (и в дальнейшем скилов различных классов)<br>" +
                "- Возможность просмотра бонусов заточки продаваемых итемов<br>" +
                "- Улучшения распознания заголовков и текста топиков<br>" +
                "- Инструмент для быстрого сравнения любых итемов<br>" +
                "- Небольшие улучшения интерфейса приложения" );
        news2.setLink ( null );
        newsData.addNews ( news2 );

        XmlUtils.toXML ( newsData, new File ( "remote/announce.xml" ) );
    }
}